Skip to content

Conversation

@cbentejac
Copy link
Contributor

Description

This pull request fixes an oversight of #2904 by updating the version parsing logic in meshroom/core/__init__.py to improve compatibility with different version string formats. The most important change is that the function now treats both - and + as valid separators for the status component of the version, ensuring compatibility with scenes created in Meshroom 2025.1.0 or earlier.

Version parsing compatibility:

  • Updated the toComponents function to replace - with + in versionName before splitting, so that both separators are handled consistently for status extraction. This maintains compatibility with older and newer version naming conventions.

In adbdd3b, the version name for
develop versions has been updated to use the "+" separator instead of
"-". When loading a scene that has been saved since this change,
errors occur during the parsing of the version name as the "+" is not
expected. This commit fixes this issue by declaring "+" as the separator.

Scenes that were saved with "-" remain compatible, as we replace all
"-" in the version name with "+" before splitting it.
@codecov
Copy link

codecov bot commented Sep 25, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 79.52%. Comparing base (8ffc283) to head (35f209c).
⚠️ Report is 14 commits behind head on develop.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff            @@
##           develop    #2906   +/-   ##
========================================
  Coverage    79.52%   79.52%           
========================================
  Files           51       51           
  Lines         6975     6976    +1     
========================================
+ Hits          5547     5548    +1     
  Misses        1428     1428           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@Alxiice Alxiice merged commit 7f0c5e2 into develop Sep 25, 2025
5 checks passed
@Alxiice Alxiice deleted the fix/versionEvaluation branch September 25, 2025 17:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants